package com.exp.base.action;

public class Message {

	/**
	 * 成功
	 */
	private boolean success;
	/**
	 * 返回码
	 */
	private int code;

	/** 
	 * 内容
	 */
	private String message;
	
	/**
	 * 结构体
	 */
	private Object data;

	public Message(boolean success) {
		this.success = success;
	}

	public Message(boolean success, int code) {
		this.success = success;
		this.code = code;
	}

	public Message(boolean success, String message) {
		this.success = success;
		this.message = message;
	}

	public Message(boolean success, Object data) {
		this.success = success;
		this.data = data;
	}

	public Message(boolean success, int code, String message) {
		this.success = success;
		this.code = code;
		this.message = message;
	}

	public Message(boolean success, int code, String message, Object data) {
		this.success = success;
		this.code = code;
		this.message = message;
		this.data = data;
	}

	
	public boolean isSuccess() {
		return success;
	}

	public Message setSuccess(boolean success) {
		this.success = success;
		return this;
	}
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}



	
	
	
}
